<!--
  Generated template for the ConfirmOrderPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>确认订单</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
	<div class="shop-name">
		<span>卖家:</span>
		<span>{{buyName}}</span>
	</div>
	<div class="goods">
		<div class="content">
			<div class="goods-pic">
				<img src="{{goodsImg}}" alt="">
			</div>
			<div class="goods-info">
				<div class="title">
					<span>{{goodsName}}</span>
					<span>{{zhuanmai_rate}}折</span>
				</div>
				<div class="price">
					<span>￥{{goodsPrice}}</span>
					<span>剩余数量：{{stock}}张</span>
				</div>
			</div>
		</div>
	</div>
	<div class="count" >
		<div class="count-title">
			<span>购买数量</span>
		</div>
		<div class="bott">
			<div class="cut" (click)="goodsCut(0)">
				<span>-</span>
			</div>
			<div class="box">
				<span class="number" [innerHTML]="goodsCount"></span>
			</div>
			<div class="put" (click)="goodsCut(1)">
				<span>+</span>
			</div>
			
		</div>
	</div>
	<div class="break"></div>
	<div class="shop-name">
		<span>支付方式</span>
	</div>
	<div class="pay">
		<ion-item (click)="payMode(0)">
			<div item-start>
				<img src="./assets/imgs/balance.png">
			</div>
			<h2>账户余额:<span class="balance">￥{{balance}}</span></h2>
			<div item-end>
				<div class="check " [ngClass]="{actived: pay  == 0}">
				</div>
			</div>
		</ion-item>
		<ion-item (click)="payMode(1)">
			<div item-start>
				<img src="./assets/imgs/alipay.png">
			</div>
			<h2>支付宝</h2>
			<div item-end>
				<div class="check " [ngClass]="{actived: pay == 1}">
				</div>
			</div>
			<!-- <ion-radio ></ion-radio> -->
		</ion-item>
	</div>
	<div class="Notice">
		<span>提示:亲爱的用户，点击支付后请于一分钟内完成支付</span>
	</div>
	<div class="gopay">
		<div class="count">
			<div>
				<span>合计:</span>
				<span class="all">￥{{priceCount}}</span>
			</div>
		</div>
		<div class="paypage" (click) =" confirmPay() ">
			<span>确认支付</span>
		</div>
	</div>
</ion-content>
